package com.example.computer_exam_training_sys.service.impl;

import com.example.computer_exam_training_sys.mapper.QuestionPreviewDTOMapper;
import com.example.computer_exam_training_sys.service.QuestionPreviewDTOService;
import com.example.computer_exam_training_sys.vo.QuestionPreviewDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionPreviewDTOServiceImpl implements QuestionPreviewDTOService {

    @Autowired
    private QuestionPreviewDTOMapper questionPreviewDTOMapper;

    @Override
    public List<QuestionPreviewDTO> getPreviewByPaperId(Integer paperId) {
        return questionPreviewDTOMapper.getPreviewByPaperId(paperId);
    }
}
